const { series, parallel } = require('gulp5');
const defaultTask = (done) => {
    console.log('defaultTask');
    done();
}
const oneTask = (done) => {
    setTimeout(() => {
        console.log('oneTask');
        done();
    }, 3000);

}
const twoTask = (done) => {
    setTimeout(() => {
        console.log('twoTask');
        done();
    }, 2000);
}
const threeTask = (done) => {
    setTimeout(() => {
        console.log('threeTask');
        done();
    }, 1000);
}
//串行任务
const seriesTask = series(oneTask, twoTask, threeTask);
const parallelTask = parallel(oneTask, twoTask, threeTask);
exports.default = defaultTask;
exports.series = seriesTask;
exports.parallel = parallelTask;